package com.zhengqing.design.create.abstract_factory._01.factory;

import com.zhengqing.design.create.abstract_factory._01.product.conn.IConn;
import com.zhengqing.design.create.abstract_factory._01.product.conn.OracleConn;
import com.zhengqing.design.create.abstract_factory._01.product.user.IUser;
import com.zhengqing.design.create.abstract_factory._01.product.user.OracleUser;

/**
 * <p> 具体工厂类 </p>
 *
 * @author zhengqingya
 * @description
 * @date 2022/12/21 16:19
 */
public class OracleFactory implements IFactory {
    @Override
    public IConn getConnection() {
        return new OracleConn();
    }

    @Override
    public IUser insertUser() {
        return new OracleUser();
    }
}